// @ 符号在vue.config.js 中配置， 表示 'src' 路径的别名
import request from '@/utils/request'

const context_path = '/lend'
export default {
  getPageList(page, size) {
    return request({
      url: `${context_path}/${page}/${size}`,
      method: 'get'
      // params: searchObj
      // data: userInfoSearchVo
    })
  },
  publish(lendId) {
    return request({
      url: `${context_path}/publish/${lendId}`,
      method: 'put'
    })
  },
  getById(id) {
    return request({
      url: `${context_path}/${id}`,
      method: 'get'
    })
  },
  makeLoan(id) {
    return request({
      url: `lend/makeLoan/${id}`,
      method: 'get'
    })
  }
}
